package com.speechb.modules.system.admin.mapper;

import com.speechb.modules.system.admin.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author llj
 * @since 2019-10-03
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> menus(@Param("text") String text);

    List<SysMenu> findListOfAdmin(@Param("_order") String order, @Param("search") String search);

    List<SysMenu> searchSelect(@Param("search") String search);

    SysMenu findSortingByParentId(@Param("parent_id") int parentId);

    int updateSysMenu(@Param("id") int id, @Param("key_name") String key_name, @Param("content") String content);
}
